package com.lening.collect;

import com.lening.common.config.LoadBalancerConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.schema.TypeNameExtractor;

@SpringBootApplication
@EnableDiscoveryClient
@LoadBalancerClients(defaultConfiguration = LoadBalancerConfiguration.class)
public class CollectApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(CollectApplication.class, args);
        TypeNameExtractor bean = run.getBean(TypeNameExtractor.class);
        System.out.println(bean);
    }

}
